<%--
  Created by IntelliJ IDEA.
  User: Hasee
  Date: 2020/8/20
  Time: 20:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib  uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>学生列表</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
</head>
<body>
    <h3>欢迎来到学生管理系统</h3>

        <center>
            <form action="" method="post">
                <table width="1000px" border="1" cellspacing="0">
                    <tr>
                        <th>学号</th>
                        <th>姓名</th>
                        <th>性别</th>
                        <th>年龄</th>
                        <th>学历</th>
                        <th>班级</th>
                        <th>剩余学分</th>
                    </tr>
                    <c:forEach items="${student}" var="s">
                        <tr>
                            <td>${s.stunum}</td>
                            <td>${s.stuname}</td>
                            <td>${s.stusex}</td>
                            <td>${s.stuage}</td>
                            <td>${s.stueducation}</td>
                            <td>${s.stuclas}</td>
                            <td>${s.stucredit}</td>
                        </tr>
                    </c:forEach>
                </table>
            </form>

        </center>
</body>
</html>
